<%-- 
    Document   : index
    Created on : Sep 27, 2012, 10:02:20 AM
    Author     : WIN7
--%>

<%@page import="aktor.artikel"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@page import="java.util.ArrayList"%>
<jsp:useBean id="catalog" scope="application" class="aktor.artikel"/>

<%
            ArrayList<aktor.artikel> vCatalog = new aktor.artikel().getDisplay();
%>

<html xmlns="">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Klinik Gizi </title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="apuppy_style.css" rel="stylesheet" type="text/css" />
        <script language="javascript" type="text/javascript">
            function clearText(field)
            {
                if (field.defaultValue == field.value) field.value = '';
                else if (field.value == '') field.value = field.defaultValue;
            }
        </script>
    </head>
    <body>
        <div id="templatemo_header_wrapper">

            <div id="templatemo_header">

                <div id="site_title">
                    <h1><a href="index.jsp" target="_parent ">
                            Apuppy
                        </a></h1>
                </div>

                <div id="templatemo_menu">
                    <ul>
                        <li><a href="index.jsp" class="current">Home</a></li>
                        <li><a href="profile.jsp" target="_parent">profile</a></li>
                        <li><a href="formPendaftaran.jsp" target="_parent">pendaftaran</a></li>
                    </ul>    	
                </div> <!-- end of templatemo_menu -->

               

                <div class="cleaner"></div>
            </div> <!-- end of templatemo_header -->

        </div> 
        <!-- end of templatemo_header_wrapper -->

        <div id="templatemo_content_wrapper">

           
                    
                    <tr>
                    <form method="post" action="SessionPasien">
                    <label align="center">LOGIN</label>
                    <br>
                    <br>
                        <td width="87">UserName</td>
                        <td width="97">
                            <br>
                            <label>
                                <input type="text" name="username" id="username" />
                            </label>
                            <br>
                            </tr>
                        <tr>
                            <td>Password</td>
                            <td>
                                <br>
                                <label>
                                    <input type="password" name="password" id="password" />
                                </label>
                            </td>
                        </tr>
                        <tr>
                            <br>
                            <td>&nbsp;</td>
                            <td>
                                <label>
                                    <input type="submit" name="Login" id="Login" value="Login" />
                                </label>
                            </td>
                        </tr>

                    <h2>Artikel</h2>
<hr>
<html>
    <body>
                <br><br>
                <%
                            for (int idx = 0; idx < vCatalog.size(); idx++) {

                %>
                <br> <br>
                <table>
                    <tr>
                        <td rowspan="7"><img src="<%= vCatalog.get(idx).getCover()%>" height="280px" width="200px" ></td>

                    </tr>
                    <tr>
                        <td> Judul  : <%= vCatalog.get(idx).getJudul_Artikel()%></td>
                    </tr>
                    <tr>
                        <td> <A href="pdf?document=<%= vCatalog.get(idx).getFileUpload()%>" onclick="foo(this, event)" onkeypress="foo(this, event)">Baca Artikel Ini</A></td>
                 </tr>
                    <tr>
                        <td>&nbsp;</td>
                    </tr>
                    </form>
                    </tr>
                </table>
                <%
                            }
                %>

            </h3>

            <br><br>
    </body>
</html>
              

                <div class="cleaner_h40"></div>
                <div class="content_section">
                </div>
            </div> <!-- end of content -->


            <div id="templatmeo_sidebar">

                <div class="sidebar_section">

                        
                </div>

                <div class="cleaner_h30"></div>
                <div class="sidebar_section">



                </div>
                  </div>
                </div> 

            </div> <!-- end of sidebar -->

            <div class="cleaner"></div>    

        </div> <div id="templatemo_content_wrapper_bottom"></div> <!-- end of content_wrapper -->

        <div id="templatemo_footer">

            <ul class="footer_menu">

            </ul>

            Copyright Â© 2048 <a href="#">Apuppy 2010</a> | 
            Designed by <a href="" target="_parent">Free CSS Templates</a> | 
            Validate <a href="http://validator.w3.org/check?uri=referer">XHTML</a> &amp; <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
        </div> <!-- end of templatemo_footer -->
    </body>
</html>
